package com.glela.live.mapper;

import com.glela.live.model.LivePlan;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by jinweiwei on 2018/3/2.
 */
public interface LivePlanMapper {

    LivePlan getById(@Param("id") int id);

    LivePlan getActiveByLiveUid(@Param("liveUserId") int liveUserId);

    List<LivePlan> getShowList();

    LivePlan getByStartTime(@Param("liveUserId") int liveUserId, @Param("startTime") Date startTime);

    int updatePlanLikeTotal(@Param("id") int id,@Param("likeTotal") int likeTotal);

	LivePlan getLivePlan();
}
